package cn.hinglo.baseservice.config;

import com.jfinal.plugin.ehcache.EhCachePlugin;
import net.sf.ehcache.CacheManager;


/**
 * @author HingLo
 * @createTime: 2018/11/15 13:50
 * @description: EhCache 缓存工具配置启动
 */
public class EhCacheConfig {

    /***
     * 缓存工具启用配置
     *
     * @param cacheManager ehcache管理器
     */
    public EhCacheConfig(CacheManager cacheManager) {
        EhCachePlugin ehCachePlugin = new EhCachePlugin(cacheManager);
        ehCachePlugin.start();
        System.out.println("======JFinal-EhCache启动初始化成功======");

    }
}
